/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.view.scribbles;

import org.jfonia.connect5.basics.BasicValueNode;
import org.jfonia.connect5.basics.MutableValueNode;

/**
 *
 * @author Rik Bauwens
 */
public class Scribble
{
        private MutableValueNode<Integer> xNode;
        private MutableValueNode<Integer> yNode;
        private MutableValueNode<String> textNode;

        public Scribble(int x, int y)
        {
                this(x, y, "");
        }

        public Scribble(int x, int y, String text)
        {
                xNode = new BasicValueNode<Integer>(x);
                yNode = new BasicValueNode<Integer>(y);
                textNode = new BasicValueNode<String>(text);
        }

        public int getX()
        {
                return xNode.getValue();
        }

        public void setX(int x)
        {
                xNode.setValue(x);
        }

        public int getY()
        {
                return yNode.getValue();
        }

        public void setY(int y)
        {
                yNode.setValue(y);
        }

        public String getText()
        {
                return textNode.getValue();
        }

        public void setText(String text)
        {
                textNode.setValue(text);
        }

        public MutableValueNode<Integer> getXNode()
        {
                return xNode;
        }

        public MutableValueNode<Integer> getYNode()
        {
                return yNode;
        }

        public MutableValueNode<String> getTextNode()
        {
                return textNode;
        }
}
